package com.j283_5.wisdom_park.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 合同表
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ContractTable implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId(value = "contract_id", type = IdType.AUTO)
    private Integer contractId;

    /**
     * 租户名称
     */
    private Integer perId;

    /**
     * 楼宇id
     */
    private Integer tenId;

    /**
     * 房间id
     */
    private Integer toomId;

    /**
     * 合同类型
     */
    private String contractType;

    /**
     * 合同状态（0代签，1生效中 2已过期）
     */
    private Integer contractState;

    /**
     * 签约时间
     */
    @DateTimeFormat(pattern = "YYYY-MM-dd")
    private Timestamp contractCreateTime;

    /**
     * 到期时间
     */
    private Timestamp contractEndTime;

    private String contract_Serial;




}

